package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Author yichao
 * Time  2018/7/12 14:34
 * Dest  第一页的订单
 */

public class FirstOrderListBean implements Parcelable {
    /**
     * orderDetailsId : 187
     * address : 四川省成都市温江区 成都中医药大学
     * phone : 18408271729
     * createTime : 2018-07-10 10:43:20
     * goodsList : [{"goodsSalenum":1,"goodsId":1239,"listUrl":"http://p35r91t1w.bkt.clouddn.com/upload/goods_list_img/d1b3474b-f772-46c7-a528-3e6715663ce7.jpg","id":234,"goodsName":"舒社超市 客厅 沙发 三位沙发 K002-C 胡桃色","serviceStatus":1}]
     * orderDetailNum : 20180710906002873647
     * storeName : 舒社超市
     * storeId : 99
     * linkman : 王述
     */

    private int orderDetailsId;
    private String address;
    private String phone;
    private String createTime;
    private String orderDetailNum;
    private String storeName;
    private int storeId;
    private String linkman;
    private List<GoodsListBeans> goodsList;

    public int getOrderDetailsId() {
        return orderDetailsId;
    }

    public void setOrderDetailsId(int orderDetailsId) {
        this.orderDetailsId = orderDetailsId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getOrderDetailNum() {
        return orderDetailNum;
    }

    public void setOrderDetailNum(String orderDetailNum) {
        this.orderDetailNum = orderDetailNum;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public int getStoreId() {
        return storeId;
    }

    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public List<GoodsListBeans> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<GoodsListBeans> goodsList) {
        this.goodsList = goodsList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.orderDetailsId);
        dest.writeString(this.address);
        dest.writeString(this.phone);
        dest.writeString(this.createTime);
        dest.writeString(this.orderDetailNum);
        dest.writeString(this.storeName);
        dest.writeInt(this.storeId);
        dest.writeString(this.linkman);
        dest.writeList(this.goodsList);
    }

    public FirstOrderListBean() {
    }

    protected FirstOrderListBean(Parcel in) {
        this.orderDetailsId = in.readInt();
        this.address = in.readString();
        this.phone = in.readString();
        this.createTime = in.readString();
        this.orderDetailNum = in.readString();
        this.storeName = in.readString();
        this.storeId = in.readInt();
        this.linkman = in.readString();
        this.goodsList = new ArrayList<GoodsListBeans>();
        in.readList(this.goodsList, GoodsListBeans.class.getClassLoader());
    }

    public static final Parcelable.Creator<FirstOrderListBean> CREATOR = new Parcelable.Creator<FirstOrderListBean>() {
        @Override
        public FirstOrderListBean createFromParcel(Parcel source) {
            return new FirstOrderListBean(source);
        }

        @Override
        public FirstOrderListBean[] newArray(int size) {
            return new FirstOrderListBean[size];
        }
    };
}
